import React, { useState, useEffect } from 'react'

export default function Count(props) {
  console.log(props)
  return (
    <>
      <p>{props.count}</p>
      <button
        onClick={() => {
          props.add(2)
        }}
      >
        +2
      </button>
      <button
        onClick={() => {
          props.add(3)
        }}
      >
        +3
      </button>
    </>
  )
}
